package com.itheima.day14.Hashtable.test1;

import java.util.HashMap;

public class Test {
    public static void main(String[] args) throws InterruptedException {
        HashMap<String,String> hm = new HashMap<>();
        new Thread(()->{
            for (int i = 1; i <= 25; i++) {
                hm.put("" + i,"" +i);
            }
        }).start();
        new Thread(()->{
            for (int i = 26; i <= 50; i++) {
                hm.put("" + i,"" +i);
            }
        }).start();

        Thread.sleep(1000);
        for (int i = 1; i <= 50; i++) {
            System.out.println(hm.get("" + i));
        }

    }
}
